package com.xbb.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xbb.entity.Section;
import com.xbb.entity.dto.SectionDto;
import com.xbb.mapper.SectionMapper;
import com.xbb.service.SectionService;
@Service
public class SectionServiceImpl implements SectionService{

	@Autowired
	SectionMapper sectionMapper;
	
	@Override
	public List<SectionDto> getSecs(SectionDto sectionDto) {
		return sectionMapper.getSecs(sectionDto);
	}

	@Override
	public boolean addSec(Section section) {
		return sectionMapper.addSec(section);
	}

	@Override
	public boolean updateSec(Section section) {
		return sectionMapper.updateSec(section);
	}

	@Override
	public boolean delSec(int secid) {
		return sectionMapper.delSec(secid);
	}

}
